<!DOCTYPE html>
<html xmlns:th="http:/www.thymeleaf.org">
<div th:fragment="blank"></div>
<div th:fragment="startFormOperation" class="row">
    <div class="col-md-12">
        <table class="table table-bordered">
            <tr>
                <td>下一步骤</td>
                <td colspan="7">
                    <select class="form-control" name="nextStep">
                        <option value="">请选择下一步骤</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>处理人</td>
                <td colspan="3">
                    <div class="form-control" style="height: 100px;overflow-y: scroll">
                        <ul class="ztree" id="handler-tree"></ul>
                    </div>
                </td>
                <td>抄送人</td>
                <td colspan="3">
                    <div class="form-control" style="height: 100px;overflow-y: scroll">
                        <ul class="ztree" id="copyto-tree"></ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="col-md-12" style="text-align: center">
        <button type="button" class="btn btn-info" onclick="saveProcessForm()"><i class="fa fa-save"></i>&nbsp;保存
        </button>
        <button type="button" class="btn btn-primary " onclick="saveAndStartProcess()"><i class="fa fa-paper-plane"></i>&nbsp;保存并发起审批
        </button>
    </div>

</div>
<div th:fragment="processDefault" class="row">
    <div class="col-md-12">
    <div class="panel panel-default">
        <div class="panel-heading">办理历史</div>
        <div class="panel-body">
            <table class="table table-bordered">
                <tr>
                    <th style="width: 20%;text-align: center">办理人</th>
                    <th style="width: 15%;text-align: center">办理时间</th>
                    <th style="width: 10%;text-align: center">耗时(分钟)</th>
                    <th style="width: 10%;text-align: center">操作</th>
                    <th style="width: 55%;text-align: center">办理意见</th>
                </tr>
                <tr th:each="entries,stat:${processHistoryList}">
                    <td th:text="${entries['handlerName']}" style="text-align: center"></td>
                    <td th:text="${entries['endTime']}" style="text-align: center"></td>
                    <td th:text="${entries['duration']/60000}" style="text-align: center"></td>
                    <td th:text="${entries['type']}" style="text-align: center"></td>
                    <td th:text="${entries['opinion']}" style="text-align: center"></td>
                </tr>

            </table>
        </div>
    </div>
    </div>
    <div class="col-md-12" style="text-align: center">
        <button type="button" class="btn btn-info" th:onclick="taskProcess([[${taskId}]])"><i class="fa fa-save"></i>&nbsp;办理</button>
        <button type="button" class="btn btn-warning" th:onclick="taskReback([[${taskId}]])"><i class="fa fa-hand-o-left"></i>&nbsp;退回</button>
        <button type="button" class="btn btn-primary" th:onclick="addSign([[${taskId}]])"><i class="fa fa-plus"></i>&nbsp;加签</button>
        <button type="button" class="btn btn-primary" th:onclick="taskSubmit([[${taskId}]])"><i class="fa fa-mail-forward"></i>&nbsp;跳转</button>
        <button type="button" class="btn btn-danger" th:onclick="processReject([[${taskId}]])"><i class="fa fa-close"></i>&nbsp;驳回</button>
        <button type="button" class="btn btn-success" th:onclick="processEnd([[${taskId}]])"><i class="fa fa-check-circle-o"></i>&nbsp;办结</button>
    </div>
</div>

<div th:fragment="processCounterSign" class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">办理历史</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <tr>
                        <th style="width: 20%;text-align: center">办理人</th>
                        <th style="width: 15%;text-align: center">办理时间</th>
                        <th style="width: 10%;text-align: center">耗时(分钟)</th>
                        <th style="width: 10%;text-align: center">操作</th>
                        <th style="width: 55%;text-align: center">办理意见</th>
                    </tr>
                    <tr th:each="entries,stat:${processHistoryList}">
                        <td th:text="${entries['userId']}" style="text-align: center"></td>
                        <td th:text="${entries['endTime']}" style="text-align: center"></td>
                        <td th:text="${entries['duration']/60000}" style="text-align: center"></td>
                        <td th:text="${entries['type']}" style="text-align: center"></td>
                        <td th:text="${entries['opinion']}" style="text-align: center"></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="col-md-12">
        <table class="table table-bordered">
            <tr>
                <td>会签意见</td>
                <td colspan="7">
                    <textarea class="form-control" name="opnion" id="opinion"></textarea>
                </td>
            </tr>
        </table>
    </div>
    <div class="col-md-12" style="text-align: center">
        <button type="button" class="btn btn-info" th:onclick="counterSignSubmit([[${taskId}]])"><i class="fa fa-save"></i>&nbsp;提交</button>
    </div>
</div>



</html>